import VueRouter from "vue-router"

import home from "./components/home.vue"
import people from "./components/people.vue"
import search from "./components/search.vue"
import shopcar from "./components/shopcar.vue"
import newList from "./components/home/newList.vue"
import newsinfo from "./components/home/newsinfo.vue"
import photo from "./components/photo/photo.vue"
import photoList from "./components/photo/photoList.vue"
import shop from "./components/shop/shop.vue"
import shopInfo from "./components/shop/shopInfo.vue"

var router=new VueRouter({
	routes:[
		{path:"/",redirect:"/home"},
		{path:"/home",component:home},
		{path:"/people",component:people},
		{path:"/shopcar",component:shopcar},
		{path:"/search",component:search},
		{path:"/home/newList",component:newList},
		{path:"/home/newsinfo/:id",component:newsinfo},
		{path:"/home/photo",component:photo},
		{path:"/home/photoList/:id",component:photoList},
		{path:"/home/shop",component:shop},
		{path:"/home/shopInfo/:id",}
	],
	linkActiveClass:'mui-active'
	
})

export default router